﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IKE.EntryLib;
using System.Xml.Serialization;

namespace IKE.LCAFormat.ILCD.Common
{
    public class GlobalReferenceType:AutoSerializeBase
    {
        public GlobalReferenceType()
        {

        }

        public GlobalReferenceType(Guid id,List<StringMultiLang> desc)
        {
            this.refObjectId = id;
            this.shortDescription = desc;
        }
        [XmlAttribute]
        [DisplayUI(1)]
        public Guid refObjectId;

        [EnumValues(12)]
        [XmlAttribute]
        [DisplayUI(2)]
        public int type;

        [XmlAttribute]
        [DisplayUI(3)]
        public string version = "02.00.000";

        [AnyURI]
        [XmlAttribute]
        [DisplayUI(4)]
        public string uri;

        [STMultiLang]
        [Xmlns("common")]
        [DisplayUI(5)]
        public List<StringMultiLang> shortDescription = new List<StringMultiLang>();

        //TODO subReference
    }
}
